import mystackgather.MyStackDoubleLinked;

public class TestDemo {
    public static void main(String[] args){
        MyStackDoubleLinked stack = new MyStackDoubleLinked();
        stack.push(1);
        System.out.println(stack.peek());// 1
        stack.push(2);
        System.out.println(stack.peek());// 2
        stack.push(3);
        System.out.println(stack.peek());// 3
        stack.push(4);
        System.out.println(stack.peek());// 4
        stack.push(5);
        System.out.println(stack.peek());// 5
        stack.push(6);
        System.out.println(stack.peek());// 6

        System.out.println(stack.pop());// 将 栈顶 6 删除,并将其值返回
        System.out.println(stack.peek());// 5
        System.out.println(stack.isEmpty());// 此时栈内，肯定不为空，返回 false
    }
}
